
public class TestFonctionnel {

	public static void main(String[] args) {
		Article a1 = new Article("jean", 89.99);
		Article a2 = new Article("pull", 39.99);
		Article a3 = new Article("basket", 69.99);
		Article a4 = new Article("sac", 109.99);
		
		
		
		Client client1 = new Client("Nana", "Cedric", 27, "nanacedric@hotmail.fr");
		Commande com = new Commande(1, client1);
		com.addLigne(new LigneCommande(a1, 1, com.getNumCommande()));
		com.addLigne(new LigneCommande(a2, 2, com.getNumCommande()));
		com.addLigne(new LigneCommande(a3, 2, com.getNumCommande()));
		com.addLigne(new LigneCommande(a4, 1, com.getNumCommande()));
		
		Client client2 =  new Client("ANane", "Zied", 27, "zied.anane@hotmail.fr");
		
		Commande com2 = new Commande(2, client2);
		com2.addLigne(new LigneCommande(a1, 1, com2.getNumCommande()));
		com2.addLigne(new LigneCommande(a4, 2, com2.getNumCommande()));
		
		
		
		System.out.println("Client : "+client1.getNom()+" a passé une commande d'un montant de "+com.getMontant());
		System.out.println("Client : "+client2.getNom()+" a passé une commande d'un montant de "+com2.getMontant());
		
		
		client1.setAge(-5);
		a2.setPu(-3.14);
		com.setClient(new Client());		
		
	}
	

}
